<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCollectionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('collections', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('userid')->comment();
            $table->integer('shopid')->comment('商家id');
            $table->string('shopname', 20)->comment('商家名称');
            $table->string('shoplogo')->comment('商家logo');
            $table->tinyInteger('status')->comment('状态');
            $table->string('info', 512)->nullable()->comment('预留字段');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('collections');
    }
}
